package fr.tm.ima.client.gxt.grid.controller;

/**
 * @author aquinault
 */

import org.puremvc.java.multicore.interfaces.INotification;
import org.puremvc.java.multicore.patterns.command.SimpleCommand;

import fr.tm.ima.client.gxt.grid.model.ModelDataProxy;
import fr.tm.ima.client.gxt.grid.view.GridMediator;

/**
 * initialization of the view.
 * Register mediator and proxy
 */
public class PrepViewCommand extends SimpleCommand {
	
	/**
	 * Register mediator and proxy.
	 * @param notification notification
	 */
	public void execute(final INotification notification) {
		this.getFacade().registerMediator(new GridMediator());
		this.getFacade().registerProxy(new ModelDataProxy());
	}

}
